package Bill.app.serveur.bean;

import java.io.Serializable;
 





import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

 
/**
 * This is the object class that relates to the abonnes table.
 * Any customizations belong here.
 */
@Entity
@Table
public class Abonnes implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String COMPTE_ACTIVE = "COMPTE_ACTIVE";
	public static final String COMPTE_IN_ACTIVE = "COMPTE_IN_ACTIVE";
	public Abonnes(long id, String etatCompte, String tel, String pays,
			String login, String pass) {
		super();
		this.id = id;
		this.etatCompte = etatCompte;
		this.tel = tel;
		this.pays = pays;
		this.login = login;
		this.pass = pass;
	}
	public Abonnes(String login) {
		super();
		this.login = login;
	}
	public Abonnes(String login, String pass) {
		super();
		this.login = login;
		this.pass = pass;
	}
	public Abonnes() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Abonnes(String etatCompte, String tel, String pays, String login,
			String pass) {
		super();
		this.etatCompte = etatCompte;
		this.tel = tel;
		this.pays = pays;
		this.login = login;
		this.pass = pass;
	}
	/**
	 * java.lang.Long _id,
		java.lang.String _etatCompte,
		java.lang.String _tel,
		java.lang.String _pays,
		java.lang.String _login,
		java.lang.String _pass
	 */
	@Id
	@GeneratedValue
private long id;
	@Column
private String etatCompte;
	@Column
private String tel;
	@Column
private String pays;
	@Column(nullable=false,unique=true)
private String login;
	@Column
private String  pass;
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the etatCompte
	 */
	public String getEtatCompte() {
		return etatCompte;
	}
	/**
	 * @param etatCompte the etatCompte to set
	 */
	public void setEtatCompte(String etatCompte) {
		this.etatCompte = etatCompte;
	}
	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}
	/**
	 * @param tel the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}
	/**
	 * @return the pays
	 */
	public String getPays() {
		return pays;
	}
	/**
	 * @param pays the pays to set
	 */
	public void setPays(String pays) {
		this.pays = pays;
	}
	/**
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}
	/**
	 * @param login the login to set
	 */
	public void setLogin(String login) {
		this.login = login;
	}
	/**
	 * @return the pass
	 */
	public String getPass() {
		return pass;
	}
	/**
	 * @param pass the pass to set
	 */
	public void setPass(String pass) {
		this.pass = pass;
	}
 
}